#!/bin/bash
basepath=$(cd `dirname $0`; pwd)
PRONAME=fe

SYS_INFO=`uname -r`
echo "sys info "$SYS_INFO

SYS_INFO=${SYS_INFO#*-}
SYS_INFO=${SYS_INFO:0:4}
if [ $SYS_INFO"rr" == "Gn64rr" ];then
PRONAME=$PRONAME"_gnos"
fi

echo $PRONAME
$basepath/stop.sh 
if [ $SYS_INFO"rr" == "Gn64rr" ];then
/bin/nohup $basepath/$PRONAME > /dev/null 2>&1 &
else
/usr/bin/nohup $basepath/$PRONAME > /dev/null 2>&1 &
fi

sleep 1

ProInfo=` ps -ef | grep $PRONAME|grep -v grep|wc -l`
if [ $ProInfo -le 0 ];then
	echo "boot "$PRONAME" fail"
else
	echo "boot "$PRONAME" success"
fi
